<?php
    echo "<div class=\"" . $cssStr . "\">您的位置：" . link_to("ieasy.tv", "general/index");
//echo "<!--";
//echo ',$type:'.$type;
//echo ',$catalogId:'.$catalogId;
//echo ',$subCatalogId:'.$subCatalogId;
////print_r($catalog);
////print_r($subCatalog);
//echo "-->";
$catalogHtml = "";
$split = " > ";
if ($catalog != null) {
    switch ($type)
    {
        default: //news
            $catalogHtml = link_to($catalog->getDescription(), "general/cindex?catalogId=" . $catalogId);
            break;
        case 2: //video
            $catalogHtml = link_to($catalog->getDescription(), "general/cindex?catalogId=" . $catalogId) . $split . link_to("视频", "video/list?catalogId=" . $catalogId);
            ;
            break;
        case 3: //celebrity
            //$catalogHtml = link_to($catalog->getDescription(),"celebrity/list?catalogId=".$catalogId);
            //break;
        case 4: //album
            $catalogHtml = link_to($catalog->getDescription(), "general/cindex?catalogId=" . $catalogId);
            break;
        case 5: //login
            $catalogHtml = link_to("用户登录", "user/login");
            break;
        case 6: //registor
            $catalogHtml = link_to("用户注册", "user/register");
            break;
        case 7: // my easy
            $catalogHtml = link_to("MY Easy", "user/home");
            break;
    }
    echo $split . $catalogHtml;
}
if ($subCatalog != null) {
    switch ($type)
    {
        default: //news
            $catalogHtml = link_to($subCatalog->getDescription(), "news/list?catalogId=" . $catalogId . "&subCatalogId=" . $subCatalogId);
            break;
        case 2: //video
            //$catalogHtml = link_to($subCatalog->getDescription(),"video/list?catalogId=".$catalogId."&subCatalogId=".$subCatalogId);
            $catalogHtml = '<a href="/video/sub/list/' . $catalogId . '/' . $subCatalogId . '">' . $subCatalog->getDescription() . '</a>';
            break;
        case 3: //celebrity
            $catalogHtml = link_to($subCatalog->getDescription(), "celebrity/cover?catalogId=" . $catalogId);
            break;
        case 4: //album
            $catalogHtml = link_to($subCatalog->getDescription(), "album/list?catalogId=" . $catalogId);
            break;
    }
    echo $split . $catalogHtml;
}
if ($lastStr != null)
    echo $split . $lastStr;
echo "</div>";
?>
 
